package cn.iocoder.yudao.module.base.controller.admin.productwarehouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 产品仓储信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ProductWarehouseRespVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24754")
    @ExcelProperty("序号")
    private Long id;

    @Schema(description = "产品信息", requiredMode = Schema.RequiredMode.REQUIRED, example = "18572")
    @ExcelProperty("产品信息")
    private Long productId;

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18572")
    @ExcelProperty("产品编号")
    private String productCode;

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "18572")
    @ExcelProperty("产品名称")
    private String productName;

    @Schema(description = "产品规格", requiredMode = Schema.RequiredMode.REQUIRED, example = "18572")
    @ExcelProperty("产品规格")
    private String productSpec;

    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "18572")
    @ExcelProperty("单位")
    private Long unitId;

    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "18572")
    @ExcelProperty("单位")
    private String unitName;

    @Schema(description = "默认入库仓", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("默认入库仓")
    private Long inWarehouse;

    @Schema(description = "默认入库仓名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("默认入库仓名称")
    private String inWarehouseName;

    @Schema(description = "默认入库库位", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("默认入库库位")
    private Long inPosition;

    @Schema(description = "默认入库库位名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("默认入库库位名称")
    private String inPositionName;

    @Schema(description = "默认出库仓", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("默认出库仓")
    private Long outWarehouse;

    @Schema(description = "默认出库仓名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("默认出库仓名称")
    private String outWarehouseName;

    @Schema(description = "默认出库库位", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("默认出库库位")
    private Long outPosition;

    @Schema(description = "默认出库库位名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("默认出库库位名称")
    private String outPositionName;

    @Schema(description = "标准库存")
    @ExcelProperty("标准库存")
    private BigDecimal standard;

    @Schema(description = "安全库存")
    @ExcelProperty("安全库存")
    private BigDecimal safe;

    @Schema(description = "补货点")
    @ExcelProperty("补货点")
    private BigDecimal fill;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}